package com.fcat.base.smartapi.lib;


import com.fcat.base.smartapi.service.TokenService;
import com.fcat.base.smartapi.service.impl.TokenServiceImpl;

public class JFJTokenTest {
    public JFJTokenTest() {
    }

    public static void main(String[] args) {
        long amount = 100;      // amount 为扩大10倍后的用量，用量值小数点后1位有效，小数点后第二位四舍五入
        String meterNo = "00000000000";
        String sgc = "123456";
        int tariffIndex = 1;
        int keyVersion = 1;
        TokenService tokenService = new TokenServiceImpl();

        String CreditToken = tokenService.getCreditToken(meterNo, sgc, tariffIndex, keyVersion, 255, 0L, 1, (int) amount);
        System.out.println("CreditToken:::   " + CreditToken);

    }

}
